import headss from '../../components/header/index.vue'
import Vue from 'vue'
import { Lazyload, Swipe, SwipeItem,Rate } from 'vant'
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
Vue.use(Lazyload)
export default {
  name:'jiyang',
  data:function(){
    return {
      value: 3,
      swiperOption: {
        direction: 'vertical',
        slidesPerView: 'auto',
        freeMode: true,
        scrollbar: {
          el: '.swiper-scrollbar'
        },
        mousewheel: true,
        on: {
          touchEnd: function(swiper,event){
            //你的事件
            console.log('我到底了')
          },
        },
      },
      info:{
        image:'https://lanhu.oss-cn-beijing.aliyuncs.com/pswfqsfd7td4lfqegh0gjszg1lys8dh0vgg04c59400-68af-43b3-9da8-571ab46f2d37',
        title:"小型犬洗澡美容套餐",
        name:'金金萌宠店',
        imgsrc:'https://lanhu.oss-cn-beijing.aliyuncs.com/pssvlxvr7u51acc3zhbc76hbz9l69nllvd73ceede8-ac29-4b90-ac2b-84114cbeb80e',
        desc:"包含小型犬洗澡、美容服务、洁白洁牙半年消费 37"
      },
      list:[{
        name:'宠物',
        desc:'请添加宠物',
        value:false,
        src:'PetSelection',
      },{
        name:'地址',
        desc:'请添加地址',
        value:false
      },{
        name:'门店',
        desc:'中关村理想城店',
        value:true
      }]
    }
  },
  components: {
    [Swipe.name]: Swipe,
    [SwipeItem.name]: SwipeItem,
    [Rate.name]: Rate,
    headss,
    Swiper,
    SwiperSlide,
  },
  mounted() {
    this.init()
  },
  methods: {
    init() {   
    },
    clickHandler (item) {
      window.alert(item)
    },
    goto(){
      this.$router.go(-1)
    },
    go(){
      this.$router.push({
        name:'BeautyDetails'
      })
    },
    gotos(src){
      console.log("我fulya1")
      this.$router.push({
        name:src
      })
    }
  }
}
